#include <stdio.h>
#include <stdlib.h>
#include <string.h>

typedef struct copy
{
   int a;
   int *b;
}C;




int main(int argc, char const *argv[])
{
    int abb = 15;
    C *a = (C*)malloc(sizeof(C));
    a->a= 10;
    a->b=&abb;
    C *b = a;
    C *c = (C*)malloc(sizeof(C));
    c->b = a->b;
    abb = 100;
    a->b = NULL;
    printf("%p\n",&abb);
    printf("%d\n",abb);
    //printf("%d\n",*(a->b));
    //printf("%d\n",*(b->b));
    printf("%d\n",*(c->b));
    printf("%p\n",a->b);
    printf("%p\n",b->b);
    printf("%p\n",c->b);
    
    return 0;
}
